[mirrors]
http://codu.org/~rofl/tarballs/libelf-compat-0.152c001.tar.bz2
http://ftp.barfooze.de/pub/sabotage/tarballs/libelf-compat-0.152c001.tar.bz2
http://foss.aueb.gr/mirrors/linux/sabotage/tarballs/libelf-compat-0.152c001.tar.bz2
http://dl.2f30.org/mirrors/sabotage/tarballs/libelf-compat-0.152c001.tar.bz2

[main]
filesize=122231
sha512=442ec322d3751f1e755a18c852ca5ade745387fb6b8526f40c451a8459eb31ac3bec091aceae5feddf91ded9deda5c359d83e92122bde6789b5324bdc47f6deb

[deps]

[build]
[ "$A" = "mips" ] && sed -i 's@__thread@@' src/elf_error.c
# ^ tls is not crucial for libelf, as gcc is single threaded and the only user of it
# having it there makes the build fail with gcc 3.4.6 mips

echo "CFLAGS += $optcflags" > config.mak
sed -i 's@HEADERS = src/libelf.h@HEADERS = src/libelf.h src/gelf.h@' Makefile
make -j$MAKE_THREADS
make prefix="$butch_prefix" DESTDIR="$butch_install_dir" install
